package com.top10.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author su
 * @since 2018-10-22
 */
@TableName("tb_comment")
public class Comment extends Model<Comment> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	private String uuid;
    /**
     * 用户uuid
     */
	@TableField("user_uuid")
	private String userUuid;
	@TableField("user_name")
	private String userName;
    /**
     * 商品uuid
     */
	@TableField("goods_uuid")
	private String goodsUuid;
    /**
     * 回复哪条评论的id
     */
	@TableField("to_uuid")
	private String toUuid;
    /**
     * 评论内容
     */
	private String content;
	private String commentTime;
    /**
     * 1：好评，2：中评：3：差评
     */
	private Integer isgood;
    /**
     * 是否删除
     */
	private Boolean isdeleted;
    /**
     * 评论的订单详情ID
     */
	@TableField("order_details_uuid")
	private String orderDetailsUuid;


	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getUserUuid() {
		return userUuid;
	}

	public void setUserUuid(String userUuid) {
		this.userUuid = userUuid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getGoodsUuid() {
		return goodsUuid;
	}

	public void setGoodsUuid(String goodsUuid) {
		this.goodsUuid = goodsUuid;
	}

	public String getToUuid() {
		return toUuid;
	}

	public void setToUuid(String toUuid) {
		this.toUuid = toUuid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCommentTime() {
		return commentTime;
	}

	public void setCommentTime(String commentTime) {
		this.commentTime = commentTime;
	}

	public Integer getIsgood() {
		return isgood;
	}

	public void setIsgood(Integer isgood) {
		this.isgood = isgood;
	}

	public Boolean getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	public String getOrderDetailsUuid() {
		return orderDetailsUuid;
	}

	public void setOrderDetailsUuid(String orderDetailsUuid) {
		this.orderDetailsUuid = orderDetailsUuid;
	}

	@Override
	protected Serializable pkVal() {
		return this.uuid;
	}

	@Override
	public String toString() {
		return "Comment{" +
			", uuid=" + uuid +
			", userUuid=" + userUuid +
			", userName=" + userName +
			", goodsUuid=" + goodsUuid +
			", toUuid=" + toUuid +
			", content=" + content +
			", commentTime=" + commentTime +
			", isgood=" + isgood +
			", isdeleted=" + isdeleted +
			", orderDetailsUuid=" + orderDetailsUuid +
			"}";
	}
}
